package dk.hewison.client.mvc;

import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.Widget;

/**
 * @author John Hewison
 * @author $LastChangedBy: john.hewison $:  $ $LastChangedDate: 2009-02-01 11:47:11 +0000 (Sun, 01 Feb 2009) $:
 * @version $Revision: 58 $:
 */
public abstract class PageView<T> extends AbstractView<T> {
    protected DockPanel dockPanel = new DockPanel();

    public DockPanel getView() {
        return dockPanel;
    }

    protected void addView(View view, DockPanel.DockLayoutConstant north) {
        dockPanel.add(view.getMyWidget(), north);
    }


    public Widget getMyWidget() {
        return dockPanel;
    }
}